<!DOCTYPE HTML>
<html>

<head>
<!-- 
:::::::::::'''''':;;:::::::':::'''''``................................................`
::::::::::'''':::;;:::::::::;::'''''``................................................`
::::::::::::::::'''''''```':;!;:''''``............................``'::'`.............`
:::::::::::::::''''''`````':;!!;'''``...........................`';!!!|!:`............`
:::::::::''''''`'''```````':;!!!;:'``.........................`':;;!!|%%|:............`
::'''''`````````````````''':;!!!!;:`........................`':;!;;;!!|||;`...........`
```````````''''''```````''::;!!|!!;:'`....................`':;!!!!!!||||||:...........`
````````''''''''''::::::':;!!!;;;;;;;;::''```````.......`:;;!|!!!||||||!||:`..........`
'''''::::::;;;;;;!!!!!;;;:;;:::::::::;;;;;;:::;;;;;;;;;;;!!||!!!|%%%%|||||;`..........`
:;;;;!!!!!!!!!!!!!!;;;;;::'''::::;;;;;;;;;;;::::::;;;!|!!|%%|!|%$$&&$%||||:`..........`
|||!!!!!!!!!!!;;;;;;::'''''''':::;;;!!!!;;;:::::::;;;;!|%%||!!!|%&&&$|!!!!:`..........`
!!!!!!!!!;;;;;;::''''''''''``''::;!!!;;;;;;;;;;;;;;;;;;;!||||||%&@&$%!!!!;`...........`
!!!!!;;;;;;;:''`''''''::'````'':;;!!;;;;;;;;;;;;;;;;;;;;;;!|!%&@@&$%!;!!!'`...........`
!!!!;;;;;;;:'`'''''''''''''''':;;!!;;;:::'::::;;;;;;;:;;;::;!|%$$%||||%%!:`...........`
!;;;;;;::::'''''''''':::::''':;;!!!!;:''''''':;;;;;;;;;::::::;;!!!!!!!!;;:'``.........`
::::'''''''```````:|$$@@$;:::;;;;;;;:'''''''::::;;;;;;;;;::::::::;!!!|%||;:'`.........`
'```````````.. ..`'!$&@@&|::::::::::::''::;;;;:;;;;;;;;;::::::::::;!!|%%|!;:'`........`
```````````.  ..`';!%$&&!:::''::''::;;;;|&%%&##&|!;;;;;::::::::::::;;!|%|!;:'`........`
``````````.. ..`'':;!!:'''''''''':;;!|$@%;|&@@@@@$!;;::::::::::::::;;;!|!!;::`........`
`````````......`'''''''''''''''''::;!|$&$|%&@@@$|;::::::::::::::::::;;;!;;;;'``.......`
````````.......`````'''''''''''''::;;;:;!|%|||;:''''''``'''''''''':::;;;;;;;:'`.......`
``'''```........`:;;;::::''''''''::::::::::::::::'''`````''''''''''':::;;;;;:'`.......`
''''''``.....`|&&&&&$%$$%;''`''''''::''':::::::::'''``````'''''''''''::::;::::'`......`
;:''''````...:&#@@#####@@&|'`````''''''''````''''''''`````````'''''''''::;::::'``.....`
!;:'''......`;|$&@@######&!:'````'''''''``'```````````'''``''''''''':::;;;;::::'`.....`
''':'`..````';$&@@@@###@$|;:'::::::::'''''````````''`````'''''''::::::;;;;;:::::'`....`
'''::'`.```';!|$&@@@@&$%|!;:'''''':::'''''''''''````'''''''':::::::::;;;;;;;;;::'``...`
::::'``..``';!|%%$$$&&$%|!!;;;::::::::''''''''''':''''::::::::''''::;;;;!!;;;;:::'`...`
:::'''`..``':;%&@##@&$$%%|!;;;;;;::;;;;:::''''::::::''::::''''''::::;;;;;;;!;;;::'``..`
::::''`.`````:|$&&&@@@##@$|;;;;::;;|||!;:::::::::'''''::'''`'''''':::;;;;;;;;;;::'``..`
.......``.``'':;|$$&&&&&&&&@&&&&@&$%%!;:::::::'''''''''''''''''''::;;;!!;;!;;;;;::'``.`
........``````'':!||||||||%%%|||||!!;:::::::::''''''''''''''''::::;;;;;!!!!!!!;;;::'`.`
........`````''''':!!!!;;;;;;;;;;;:::::::::::::::'''''''''::::::;;;;;;;;!!!!!!;;;;:'`.`
.........````''''''''':::::::::::::::::::::::::::''''''''::::::;;;;;;;!!!!!!!!;;;;:'```
.........`````'''''''':::::::::::::::;:::::::''''''''''''':::::;;;!;;!!|||!!!!;;;;::'``
........``''''''''''':''''::::::::::::::::::'''''''''':::::::::;;;!!!!|||!!!!;;;;:::'``
``````````''''''''''':::::::::::::::::::::::''''''''::::::;;;;;;;;;!!!!!!!;;;;;::::''``
``````````'''''::'''''::::::::::::::::;;:::::::::::::::::::::::;;!!!!!!!;;:::::::'''```
``````````'''''':::::'::::::::::::;;::::::::;;;;::;:::::::::::;;;;;;;;;;;;:::::'':''```
```````````''''''':::::::::::::;;;;;;;;;;;;;;;;::::::::::::::::;;;!;::::::''''''''''```
`````````````'''''''::;;;;;;;;;!!!!!!!;;;;;;::::''''''::::::::::::''''''''''''''''''`.`
``````````````''''''::::;;;;;;;;;;!;;;;;:::''''::::::::::':::::''''''''''':::::::::''''



 -->
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/bui-min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/main-min.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/x-icon" href="assets/img/favicon.ico">
</head>

<body>
	<div class="header">
		<div class="dl-title">
			<img src="assets/img/6.png"> <span>功能清单管理系统</span>
		</div>
		<div class="dl-log">
			欢迎您，<span class="dl-log-user" id="username"></span><a
				href="/public/logout" title="退出系统" class="dl-log-quit">[退出]</a>
		</div>
	</div>
	<div class="content">
		<div class="dl-main-nav">
			<div class="dl-inform">
				<div class="dl-inform-title">
					<s class="dl-inform-icon dl-up"></s>
				</div>
			</div>
			<ul id="J_Nav" class="nav-list ks-clear">
				<li class="nav-item dl-selected">
					<div class="nav-item-inner nav-order">产品管理</div>
				</li>
				<!-- <li class="nav-item dl-selected">
					<div class="nav-item-inner nav-order">仓储管理</div>
				</li>
				<li class="nav-item dl-selected">
					<div class="nav-item-inner nav-order">运输管理</div>
				</li>
				<li class="nav-item dl-selected">
					<div class="nav-item-inner nav-order">客户管理</div>
				</li>
				 -->
			</ul>
		</div>
		<ul id="J_NavContent" class="dl-tab-conten">
		</ul>
	</div>
	<script type="text/javascript" src="assets/js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="assets/js/bui.js"></script>
	<script type="text/javascript" src="assets/js/common/main-min.js"></script>
	<script type="text/javascript" src="assets/js/config-min.js"></script>
	<script type="text/javascript" src="app/assets/lib/dialog-min.js"></script>
	<link rel="stylesheet" href="app/assets/css/ui-dialog.css">
	<script>
		    BUI.use('common/main', function() {
		        var config = [{
		            id: 'systemManage',
		            homePage: 'businessList',
		            menu: [
		                   
				/*    {
				           		text:'订单管理',
				           		items:[
				           		       {
				                       id: 'ordersManage',
				                       text: '订单管理',
				                       href: 'index.html#!/107'
				                   },
				                   {
				                	   id:'produceManage',
				                	   text:'生产管理',
				                	   href:'index.html#!/109'
				                   },
				                   {
				                	   id:'translateManage',
				                	   text:'运输管理',
				                	   href:'index.html#!/115'
				                   }
				           		]
				           		},
				           		
				      {
		                text: '基本资料',
		                items: [{
		                    id: 'goodsManager',
		                    text: '商品资料',
		                    href: 'index.html#!/105'
		                }]
		            },  */
		            {
							text: '功能清单',
							items: [{
									id: 'businessList',
									text: '营业厅管理',
									href: 'index.html#!/119'
								}, {
									id: 'materialRecordManage',
									text: '设备清单',
									href: 'index.html#!/123'
								}, {
									id: 'lossRelation',
									text: '功能区模板',
									href: 'index.html#!/124'
								}

							]
						}, 
/* 						{
			                text: '系统设置',
			                items: [{
			                    id: 'userManage',
			                    text: '用户管理',
			                    href: 'index.html#!/100'
			                }, {
			                    id: 'roleManage',
			                    text: '角色管理',
			                    href: 'index.html#!/102'
			                }, {
			                    id: 'employeeManage',
			                    text: '职员管理',
			                    href: 'index.html#!/101'
			                },
		                    {
		                        id:'orgStructure',
		                        text:'组织机构',
		                        href: 'index.html#!/104'
		                    },
		                    {
		                    	id:'customerManage',
		                    	text:'客户管理',
		                    	href:'index.html#!/106'
		                    }
			                ]
			            } */	
						
						]
		        }];
							new PageUtil.MainPage({
								modulesConfig: config
							});
							/*$.getJSON('main/menu', function(config) {
							 for (i = 0; i < config.length; i++) {
							 $("#J_Nav").append('<li class="nav-item dl-selected"><div class="nav-item-inner nav-order">'
							 + config[i].menuName + '</div></li>')
							 }
							 new PageUtil.MainPage({
							 modulesConfig: config
							 });
							 });*/
						});
						$.get("main/username", function(data) {
							$("#username").text(data);
						})
			
						/**
						 * 顶层页面的弹出层
						 * @return {artDialog} 弹出层
						 */
						function artDialog() {
							var mydialog = dialog();
							return mydialog;
						}
						/**
						 * 获取Cookie
						 * @param  {String} c_name cookie名称
						 * @return
						 */
						function getCookie(c_name) {
							//先查询cookie是否为空，为空就return ""
							if(document.cookie.length > 0) {
								c_start = document.cookie.indexOf(c_name + "=")
								if(c_start != -1) {
									c_start = c_start + c_name.length + 1
									c_end = document.cookie.indexOf(";", c_start)
									if(c_end == -1) c_end = document.cookie.length
									return document.cookie.substring(c_start, c_end)
								}
							}
							return ""　;
						}
						/**
						 * 删除cookie
						 * @param  {String} c_name cookie名称
						 * @return
						 */
						function expireCookie(c_name) {
							var exTime = new Date();
							exTime.setTime(exTime.getDate() - 1);
							document.cookie = c_name + "=;expires=" + exTime.toGMTString();
						}
						/**
						 * 生成downloadToken
						 */
						function setDownloadToken() {
							return "" + (Math.random() * 1024 | 0) + new Date().getTime();
						}
						/**
						 * 定时检测cookie
						 * @param  {String} downloadToken cookie值
						 * @return
						 */
						function checkCookie(downloadToken) {
							var timer,
								flag = 0,
								mydialog = artDialog(),
								triggerDelay = 100;
							clearTimeout(timer);
							mydialog.showModal();
							timer = setTimeout(function() {
								function checkToken() {
									sertoken = getCookie("downloadToken");
									if(sertoken == downloadToken) {
										clearTimeout(downloadTimer);
										mydialog.close().remove();
										// 删除cookie
										expireCookie("downloadToken");
										flag = 0;
									} else {
										// 每100毫秒检查一次cookie
										setTimeout(checkToken, 100);
									}
								}
								if(!flag) {
									flag = 1;
									// var frame = $('<iframe />').attr('src', "/apply/download/list").attr('id', 'iframe_download_report').hide().appendTo('body');
									var downloadTimer = setTimeout(checkToken, 1000);
								}
							}, triggerDelay);
						}
						var args = {};
		</script>
</body>

</html>
